/*
 ============================================================================
 Name		: AutoOrderProcessDocument.cpp
 Author	  : lin.chaoming
 Copyright   : do1
 Description : CAutoOrderProcessDocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include "AutoOrderProcessAppUi.h"
#include "AutoOrderProcessDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CAutoOrderProcessDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CAutoOrderProcessDocument* CAutoOrderProcessDocument::NewL(
        CEikApplication& aApp)
{
    CAutoOrderProcessDocument* self = NewLC(aApp);
    CleanupStack::Pop(self);
    return self;
}

// -----------------------------------------------------------------------------
// CAutoOrderProcessDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CAutoOrderProcessDocument* CAutoOrderProcessDocument::NewLC(
        CEikApplication& aApp)
{
    CAutoOrderProcessDocument* self = new (ELeave) CAutoOrderProcessDocument(
            aApp);

    CleanupStack::PushL(self);
    self->ConstructL();
    return self;
}

// -----------------------------------------------------------------------------
// CAutoOrderProcessDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CAutoOrderProcessDocument::ConstructL()
{
    // No implementation required
}

// -----------------------------------------------------------------------------
// CAutoOrderProcessDocument::CAutoOrderProcessDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CAutoOrderProcessDocument::CAutoOrderProcessDocument( CEikApplication& aApp) :
    CAknDocument(aApp)
{
    // No implementation required
}

// ---------------------------------------------------------------------------
// CAutoOrderProcessDocument::~CAutoOrderProcessDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CAutoOrderProcessDocument::~CAutoOrderProcessDocument()
{
    // No implementation required
}

// ---------------------------------------------------------------------------
// CAutoOrderProcessDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CAutoOrderProcessDocument::CreateAppUiL()
{
    // Create the application user interface, and return a pointer to it;
    // the framework takes ownership of this object
    return new (ELeave) CAutoOrderProcessAppUi;
}

// End of File
